Repository navigation
feat(secrets): request_secret can store a value straight into agenix - #10
Merged
Merged
Conversation
An agent that needed a persistent secret asked with `delivery: "file"`, and a second tool moved the file into agenix. On 2026-11-17 T3 swept its secret files before that second step ran, the token was lost, and the user had to create and paste it again. `delivery: "agenix"` with an `agenix` target (user, root module or host, name, env or bare, category, expiry, custodian, project, verify URL) keeps the card as the entry surface but removes the second step. The card shows where the value will go. On save the server runs the `agenixSecretCommand` setting (default `canix secret store`, settings.json only) with the target as `--flag=value` arguments and the value on stdin only. T3 writes nothing: no ref, no file, no argv or env, and a secret-provider read no longer stays in the resolver cache. The agent gets only the command's JSON result (path, commit, verify and rekey state); a failure shows on the card, which stays open to retry or decline. An empty command refuses the mode at request time. Closes #9
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9.
An agent that needs a token to keep asked with
delivery: "file", and canix then moved that file into agenix in a second step. On 2026-11-17 T3 swept its secret files before that second step ran, so the Cloudflare token was lost and had to be entered again.request_secretnow takesdelivery: "agenix"with anagenixtarget: one ofuser/rootModule/host,name,env[](omitted means bare),category,expires(YYYY-MM-DDornever),custodian,projectandverifyUrl(https only). The target is recorded on the turn item when the agent asks, so a client's answer can't redirect it. The web and mobile cards show where the value goes and warn that a verify URL receives the value as a Bearer token.On save,
SecretRequests.answerruns theagenixSecretCommandsetting (default["canix", "secret", "store"]) with--flag=valuearguments, so a name starting with-can't turn into a flag. The value goes on stdin only.{ path, committed_sha, verify, rekey, rops_id? }is recorded asagenixResultand is the only thing the agent receives.{ error: { code, message } }, or itserror:stderr line for usage errors. The card stays open so the user can retry or decline.settings.jsononly and isn't inServerSettingsPatch, so a remote client can't change which command runs.The tool description now recommends
agenixfor secrets meant to persist.docs/user/secrets.mdhas a new section. The MCP tool-list budget went from 48119 to 48764 bytes for the new schema. I didn't run the model evals.The base is
native/20261114-3d53030d91, the commit the Atlas native fork runs today, so the diff contains only this change.Tests:
vp run check:changedpasses. Its only failure, "unused patches", is a pre-existing pnpm peer-dependency issue in infra/relay.Reviewed with sol-loop: 2 rounds with openai/gpt-6.1-sol. Sol verdict: approved at 1cfc367
🤖 Generated with Claude Code